#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QTimer>
#include <QResizeEvent>
#include <QGridLayout>
#include <QToolBar>
#include <QToolButton>
#include <QSize>
#include <QFileDialog>
#include <QScrollArea>
#include <QMenu>
#include <QMenuBar>
#include <QInputDialog>

#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

#include "videocontroller.h"

class MainWindow : public QWidget
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    int _width;
    int _height;
    QLabel *framLabel;
    VideoController *controller;
    QToolBar *tool;
    QToolButton *bPlayPause;
    QScrollArea *area;
    void resizeEvent(QResizeEvent* event);

public slots:
    void slotFullScreen();
    void slotRecord();
    void slotPlay();
    void slotStop();
    void slotOpenFile();
    void slotOpenCamera();
    void slotQuit();
    void slotFlux();
    void slotSaveFolder();
};

#endif // MAINWINDOW_H
